home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / MISCELLA / DVIWN281.ZIP / DEMO.TEX < prev    next >
Text File  |  1993-09-30  |  3KB  |  54 lines

  1. \nopagenumbers
  2. \parindent=0cm
  3. \parskip=3mm
  4. %
  5. % The next few lines define a macro to draw a shaded paragraph. The only
  6. % restriction is that the paragraph cannot span more than one page. I am
  7. % no TeX wizard (very far from it), so there may be much better ways of
  8. % doing this task.
  9. %
  10. % Find the width of the page in milliinches
  11. \newcount\mywidth  \mywidth=\hsize
  12.   \divide\mywidth by 1000 \multiply\mywidth by 13837 \divide\mywidth by 65536
  13. \def\space{ }
  14. \long\def\ShadedPar#1{{\parskip=0cm\hfill\break%
  15.    \special{pn 12}\special{sh 0.2}\special{pa 0 0}%
  16.    \special{pa \the\mywidth\space 0}%
  17.    \smallskip\leftskip=3mm\rightskip=3mm #1 \medskip%
  18.    \special{pa \the\mywidth\space 0}\special{pa 0 0}\special{fp}}}
  19.  
  20. \centerline{\bf Demo file for DVIWIN 2.8}
  21. \centerline{September 30, 1993}
  22. \centerline{Hippocrates Sendoukas}
  23. \vskip 13mm
  24.  
  25. This driver lets you preview and print DVI files under MS-Windows 3.1. Its
  26. main advantages are: speed, compatibility with any raster device with a
  27. Windows driver, and graphics capability. Apart from some assembly acceleration
  28. for all machines, it uses special routines on 80386 or 80486 processors to
  29. speed up the rasterization. All screen and printer handling is done through
  30. Windows, so it should work on any printer supported by the system. You can
  31. insert arbitrary graphics files produced by most Windows applications, or
  32. other standard graphics files. This version has intrinsic support for WMF,
  33. BMP, PCX and MSP files; other formats (eg., TIFF, HPGL, etc.) can also be
  34. imported provided that you have the appropriate graphics filter. The following
  35. graph was made with Excel and it will come out in color if you print it on
  36. a color printer.
  37.  
  38. \vskip 1cm
  39. \centerline{Sample Figure: Utility surface for two goods}
  40. \special{center                 % Don't do any scaling
  41.            demo.wmf,            % Filename of graphics file
  42.            \the\hsize 78mm}     % How much space we want to leave on paper
  43. \vskip 78mm                     % Instruct TeX to leave enough vertical space
  44.  
  45. \ShadedPar{The driver also understands emTeX and tpic specials. The box
  46. and the shading of this paragraph was made with a few simple tpic specials.}
  47.  
  48. For more information on using the programs, please read or print the files
  49. ``dviwin.wri'', ``wbr.wri'' and ``clipmeta.wri''. If you encounter any
  50. installation or operation problems, read the file ``helpme.wri'' and
  51. if it does not resolve the problem, please let me know. My address
  52. is ``3 Sifnou St., Athens 11254, Greece''
  53. \end
  54.